#include<stdio.h>
int main()
{
	int a, b, c, d;
	scanf_s("%d,%d,%d", & a, &b, &c);
	d = a > b ? a : b;
	a = d > c ? d : c;
	printf("%d",a);
	return 0;
}